package com.tarena.security.admin.persists.repository;

import com.tarena.security.admin.entity.db.Department;
import com.tarena.security.admin.entity.query.DepartmentQuery;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ly
 * @since 2023-04-10
 */
public interface DepartmentRepository {

    int addNewDepartment(Department department);

    int getDepartmentCountByName(String name);

    List<Department> getDepartmentList(DepartmentQuery query);

    Department getDepartmentById(Integer id);

    int updateByID(Department department);

    int deleteById(Integer[] id);
}
